package com.mes.cloud.dao;

import com.mes.cloud.dto.MenuDTO;
import com.mes.cloud.dto.extral.MenuExtralDTO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
* 菜单
* @author wxm
* @Time 2019-4-10
*/
@Mapper
@Repository
public interface MenuDAO extends BaseDao<MenuDTO>{

    /**
     * 查找用户菜单或者按钮
     * @param map
     * @return
     */
    List<MenuDTO> findListByUser(Map<Object, Object> map);

    List<MenuExtralDTO> findMenuExtralList(Map<Object,Object> map);
}
